package com.qidianit.mes.sys.service;

import com.github.pagehelper.PageInfo;
import com.qidianit.mes.pojo.Result;
import com.qidianit.mes.pojo.Supplier;

public interface SupplierService {

    Result<PageInfo<Supplier>> selectList(Supplier supplier,int pageNum,int pageSize);

    Result<Supplier> selectByCode(String code);

    Result<Supplier> saveSupplier(Supplier supplier);

    Result<Supplier> updateById(Supplier supplier);

    Result deleteById(Long id);

    Result batchDelete(Long[] ids);
}
